package com.ayz.gateway.core.session.convert;

/**
 * @ClassName HttpStatToRpcStatConvertFactory
 * @Description TODO:从HttpStat转换到RpcStat的类型转换器工厂
 * @Author 快乐的星球
 * @Date 2023/5/10 14:25
 * @Version 1.0
 **/


import com.ayz.gateway.core.datasource.RpcStatement;
import com.ayz.gateway.core.rpc.MappedMethod;
import com.ayz.gateway.core.session.http.HttpStatement;

/**
 * 单例工厂
 */
public class HttpStatToRpcStatConvertFactory {

    private HttpStatToRpcStatConvertFactory(){
    }

    private static final HttpStatToRpcStatConvert convert=new HttpStatToRpcStatConvert();

    public static RpcStatement convert(HttpStatement httpStatement, MappedMethod mappedMethod){
        return convert.convert(httpStatement,mappedMethod);
    }
}
